From f712e56ef4a6c02381342d49dc913041cdb93404 Mon Sep 17 00:00:00 2001 From: Debian Science Maintainers Date: Tue, 28 Jan 2020 22:29:29 +0000 Subject: [PATCH] Use Python 3 in script shebangs (Skipping the two .pyx files with #!python - they need to be compiled with Cython, not directly run with any version of plain Python) Author: Rebecca N. Palmer Forwarded: no Gbp-Pq: Name python3_shebangs.patch --- docs/fix_longtable.py | 2 +- examples/python/plots_boxplots.py | 2 +- examples/python/robust_models_1.py | 2 +- statsmodels/regression/quantile_regression.py | 2 +- statsmodels/sandbox/examples/example_pca.py | 2 +- statsmodels/tools/print_version.py | 2 +- tools/backport_pr.py | 2 +- tools/code_maintenance.py | 2 +- tools/export_notebooks_to_python.py | 2 +- tools/generate_formula_api.py | 2 +- tools/github_stats.py | 2 +- tools/update_web.py | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/fix_longtable.py b/docs/fix_longtable.py index 2dd73e4..cc56161 100644 --- a/docs/fix_longtable.py +++ b/docs/fix_longtable.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import sys import os diff --git a/examples/python/plots_boxplots.py b/examples/python/plots_boxplots.py index 83ec1d0..f64c9da 100644 --- a/examples/python/plots_boxplots.py +++ b/examples/python/plots_boxplots.py @@ -5,7 +5,7 @@ # flake8: noqa # DO NOT EDIT -#!/usr/bin/env python +#!/usr/bin/env python3 # coding: utf-8 # # Box Plots diff --git a/examples/python/robust_models_1.py b/examples/python/robust_models_1.py index 40be4f4..3fc7824 100644 --- a/examples/python/robust_models_1.py +++ b/examples/python/robust_models_1.py @@ -5,7 +5,7 @@ # flake8: noqa # DO NOT EDIT -#!/usr/bin/env python +#!/usr/bin/env python3 # coding: utf-8 # # M-Estimators for Robust Linear Modeling diff --git a/statsmodels/regression/quantile_regression.py b/statsmodels/regression/quantile_regression.py index 05fb99b..d293cc5 100644 --- a/statsmodels/regression/quantile_regression.py +++ b/statsmodels/regression/quantile_regression.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' Quantile regression model diff --git a/statsmodels/sandbox/examples/example_pca.py b/statsmodels/sandbox/examples/example_pca.py index 2d32c25..6951218 100644 --- a/statsmodels/sandbox/examples/example_pca.py +++ b/statsmodels/sandbox/examples/example_pca.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import numpy as np from statsmodels.sandbox.pca import Pca diff --git a/statsmodels/tools/print_version.py b/statsmodels/tools/print_version.py index 082bf27..f2b8f4e 100755 --- a/statsmodels/tools/print_version.py +++ b/statsmodels/tools/print_version.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function from statsmodels.compat.python import reduce import sys diff --git a/tools/backport_pr.py b/tools/backport_pr.py index 54e6096..9b470e8 100644 --- a/tools/backport_pr.py +++ b/tools/backport_pr.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Backport pull requests to a particular branch. diff --git a/tools/code_maintenance.py b/tools/code_maintenance.py index 889c80c..44b4168 100644 --- a/tools/code_maintenance.py +++ b/tools/code_maintenance.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Code maintenance script modified from PyMC """ diff --git a/tools/export_notebooks_to_python.py b/tools/export_notebooks_to_python.py index 237fa38..b56bd2e 100644 --- a/tools/export_notebooks_to_python.py +++ b/tools/export_notebooks_to_python.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- import argparse import glob diff --git a/tools/generate_formula_api.py b/tools/generate_formula_api.py index 244d909..d0e4eca 100755 --- a/tools/generate_formula_api.py +++ b/tools/generate_formula_api.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ This will generate an API file for formula. in dir/statsmodels/formula/api.py diff --git a/tools/github_stats.py b/tools/github_stats.py index dac9394..b1b69e4 100644 --- a/tools/github_stats.py +++ b/tools/github_stats.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """Simple tools to query github.com and gather stats about issues. Copied from IPython 732be29 diff --git a/tools/update_web.py b/tools/update_web.py index b076683..4fe08cd 100755 --- a/tools/update_web.py +++ b/tools/update_web.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ This script installs the trunk version, builds the docs, then uploads them to ... -- 2.30.2